import 'package:dio/dio.dart';
import 'package:myjd/api/index.dart';

class CategoryApi {
  /**
   * 获取左侧分类
   */
  static getLeft() async {
    Response result = await ApiBase.dio.get("/api/pcate");
    return result;
  }

  static getRight(String id) async {
    Response result = await ApiBase.dio.get("/api/pcate?pid=${id}");
    return result;
  }
}
